<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "corp".
 *
 * @property string $uid
 * @property string $name
 * @property string $address
 * @property string $number
 * @property string $type
 * @property string $state
 * @property string $experience
 * @property string $recruit_number
 * @property string $education
 * @property string $money
 * @property string $Job_description
 * @property integer $corp_time
 * @property integer $create_time
 */
class Corp extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'corp';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['uid'], 'required'],
            [['corp_time', 'create_time'], 'integer'],
            [['uid', 'name'], 'string', 'max' => 36],
            [['address'], 'string', 'max' => 100],
            [['number', 'type'], 'string', 'max' => 20],
            [['state', 'experience', 'recruit_number', 'education'], 'string', 'max' => 10],
            [['money'], 'string', 'max' => 30],
            [['Job_description'], 'string', 'max' => 300],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'uid' => 'Uid',
            'name' => '公司名称',
            'address' => '公司地址',
            'number' => '公司人数',
            'type' => '公司行业',
            'title' => '招聘职位',
            'state' => '状态',
            'experience' => '工作经验',
            'recruit_number' => '招聘人数',
            'education' => '学历',
            'money' => '工资',
            'job_description' => '职位描述',
            'corp_time' => '发布时间',
            'create_time' => 'Create Time',
        ];
    }
}
